package com.ecloud.service.translate.intercept;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.AsyncHandlerInterceptor;

import com.fasterxml.jackson.core.JsonProcessingException;

/**
 * 权限拦截器
 *
 * @author LiuGangQiang Create in 2020/01/24
 */
public class SecurityInterceptor implements AsyncHandlerInterceptor {

    /**
     * @see org.springframework.web.servlet.handler.Hand lerInterceptorAdapter#preHandle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object)
     */
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws JsonProcessingException, IOException {
        return true;
    }
}